package airlinesystem;

/**
 * Represents a role that a person can have 
 * @author Robert Maaskant & Dennis van der Zwet
 *
 */
public abstract class PersonRole
{
  /**
   * The person that has this role
   */
  private Person person;

  /**
   * The constructor for PersonRole
   * @param person the person that has this role
   */
  public PersonRole(Person person)
  {
    this.person = person;
    person.addRole(this);
  }
  
  /**
   * Returns the person that is associated with this role
   * @return the person that is associated with this role
   */
  public Person getPerson()
  {
    return person;
  }
}
